import { ref } from 'vue'
import { defineStore } from 'pinia'
import httpInstance from "@/http/index.js";

export const categoryStore = defineStore('category', () => {


  const category = ref([]);
  const getCategory = async () => {
    let response = await httpInstance.get('/vueTest/getCategory');
    category.value = response.data;
  }

  return { category, getCategory }
})
